package com.bm.mapper;

import com.bm.Do.Epidemic.EpidemicDetailSqlQuery;
import com.bm.Do.Epidemic.EpidemicListSqlQuery;
import com.bm.model.EjyyEpidemic;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bm.query.Epidemic.*;
import org.mapstruct.Mapper;

/**
* @Entity com.bm.model.EjyyEpidemic
*/
@Mapper
public interface EjyyEpidemicMapper extends BaseMapper<EjyyEpidemic> {

     /**
      * 查找用户是否存在
      * @param ejyyEpidemic
      * @return
      */
     EjyyEpidemic selectId(EjyyEpidemic ejyyEpidemic);

     /**
      * 添加用户的疫情防控信息
      * @param epidemicCreateQuery
      * @return
      */
     int addEpidemic(EpidemicCreateQuery epidemicCreateQuery);

     /**
      * EpidemicList获得选中条件的用户数据
      * @param epidemicListQuery
      * @return
      */
     EpidemicListSqlQuery[] selectAll(EpidemicListQuery epidemicListQuery);

     /**
      * EpidemicList返回查询的数据量
      * @return
      */
     int foundRows();

     EpidemicDetailSqlQuery selectById(EpidemicDetailQuery epidemicDetailQuery);

}
